﻿<%@ Page Language="C#" MasterPageFile="~/Admin/PMAdmin.Master" AutoEventWireup="true"
    CodeBehind="ClientForm.aspx.cs" Inherits="PM.Site.Admin.ClientForm" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div style="text-align:left; margin-left:400px;">
            <asp:ValidationSummary ID="valsCustomerDetails" runat="server" ValidationGroup="g1" />
        </div>
    <div class="form_left">
        
        <table>
            <tr>
                <td>
                    *Client code:
                </td>
                <td>
                    <asp:TextBox ID="txbClientId" runat="server" TextMode="SingleLine"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="valClientId" runat="server" ErrorMessage="Please enter the Client Id"
                        ControlToValidate="txbClientId" Display="Dynamic" SetFocusOnError="True" ValidationGroup="g1">*</asp:RequiredFieldValidator>
                </td>               
            </tr>
             <tr>
                <td>
                    *CDS No:
                </td>
                <td>
                    <asp:TextBox ID="txbCDS" runat="server" TextMode="SingleLine"></asp:TextBox>
                    <%--<asp:RequiredFieldValidator ID="valCDS" runat="server" ErrorMessage="Please enter the CDS No"
                        ControlToValidate="txbCDS" Display="Dynamic" SetFocusOnError="True" ValidationGroup="g1">*</asp:RequiredFieldValidator>--%>
                </td>
                <td style="font-family: arial; color: Gray;">
                    (e.g. DSA-123456789-VN-00)
                </td>
            </tr>
            <tr>
                <td>
                    *Bank Account No:
                </td>
                <td>
                    <asp:TextBox ID="txbBankAccNo" runat="server" TextMode="SingleLine"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="valBankAccNo" runat="server" ErrorMessage="Please enter the Bank Account No"
                        ControlToValidate="txbBankAccNo" Display="Dynamic" SetFocusOnError="True" ValidationGroup="g1">*</asp:RequiredFieldValidator>
                </td>               
            </tr>
            <tr>
                <td>
                    Title:
                </td>
                <td>
                    <asp:DropDownList ID="ddlTitleList" runat="server" DataTextField="TitleName" DataValueField="TitleName">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    Initials:
                </td>
                <td>
                    <asp:TextBox ID="txbInitials" runat="server" TextMode="SingleLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Family name:
                </td>
                <td>
                    <asp:TextBox ID="txbFamilyName" runat="server" TextMode="SingleLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    *Surname:
                </td>
                <td>
                    <asp:TextBox ID="txbSurname" runat="server" TextMode="SingleLine"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="valTxbSurname" runat="server" ErrorMessage="Please enter the surname"
                        ControlToValidate="txbSurname" Display="Dynamic" SetFocusOnError="True" ValidationGroup="g1">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Other names:
                </td>
                <td>
                    <asp:TextBox ID="txbOtherNames" runat="server" TextMode="SingleLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Gender:
                </td>
                <td>
                    <asp:DropDownList ID="ddlGender" runat="server" DataTextField="GenderName" DataValueField="GenderName">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    *Date of birth:
                </td>
                <!--<td><asp:Calendar ID="Calendar1" runat="server"></asp:Calendar></td> -->
                <td>
                    <asp:TextBox ID="txbDob" runat="server" TextMode="SingleLine"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="valDate" runat="server" ErrorMessage="Please specify the Date of Birth."
                        ControlToValidate="txbDob" Display="Dynamic" SetFocusOnError="True" ValidationGroup="g1">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Martial Status:
                </td>
                <td>
                    <asp:DropDownList ID="ddlMaritalStatus" runat="server" DataTextField="MartialStatusName"
                        DataValueField="MartialStatusName">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    No of Joint Investors:
                </td>
                <td>
                    <asp:TextBox ID="txbNoOfJointInvestors" runat="server" TextMode="SingleLine" Text="0"></asp:TextBox>
                    <%--<asp:RangeValidator ID="valNoOfJointInvestors" runat="server" ErrorMessage="No of joint investors cannot be more than 2"
                                        MaximumValue="2" MinimumValue="0" ></asp:RangeValidator>--%>
                    <asp:LinkButton ID="lnkJointInvestorsDetails" runat="server" PostBackUrl="~/Admin/JointInvestors.aspx"
                        Visible="false">Add/Edit Joint Investor details</asp:LinkButton>
                </td>
            </tr>
            <tr>
                <td>
                    *Country of Residence:
                </td>
                <td>
                    <asp:TextBox ID="txbCountryOfRes" runat="server" TextMode="SingleLine"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="valCountryOfRes" runat="server" ErrorMessage="Please enter the Country of Residence"
                        ControlToValidate="txbCountryOfRes" Display="Dynamic" SetFocusOnError="True" ValidationGroup="g1">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    *Citizenship:
                </td>
                <td>
                    <asp:TextBox ID="txbCitizenship" runat="server" TextMode="SingleLine"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="valCitizenship" runat="server" ErrorMessage="Please enter the Citizenship"
                        ControlToValidate="txbCitizenship" Display="Dynamic" SetFocusOnError="True" ValidationGroup="g1">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    *Residential address:
                </td>
                <td>
                    <asp:TextBox ID="txbAddRes" runat="server" TextMode="MultiLine"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="valtxbAddRes" runat="server" ErrorMessage="Please enter the Residential Address"
                        ControlToValidate="txbAddRes" Display="Dynamic" SetFocusOnError="True" ValidationGroup="g1">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Office Address:
                </td>
                <td>
                    <asp:TextBox ID="txbAddOffice" runat="server" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
        </table>
    </div>
    <div class="form_left" style="margin-left:15px;">
        <table>
            <tr>
                <td>
                    Contact details...
                </td>
            </tr>
            <tr>
                <td>
                    *Mobile:
                </td>
                <td>
                    <asp:TextBox ID="txbTelMobile" runat="server" TextMode="SingleLine"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="valTelMobile" runat="server" ErrorMessage="Please enter the Mobile number"
                        ControlToValidate="txbTelMobile" Display="Dynamic" SetFocusOnError="True" ValidationGroup="g1">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Office:
                </td>
                <td>
                    <asp:TextBox ID="txbTelOffice" runat="server" TextMode="SingleLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Resident:
                </td>
                <td>
                    <asp:TextBox ID="txbTelRes" runat="server" TextMode="SingleLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Fax:
                </td>
                <td>
                    <asp:TextBox ID="txbFax" runat="server" TextMode="SingleLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    *Email:
                </td>
                <td>
                    <asp:TextBox ID="txbEmail" runat="server" TextMode="SingleLine"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="valEmail" runat="server" ErrorMessage="Please enter the Email address"
                        ControlToValidate="txbEmail" Display="Dynamic" SetFocusOnError="True" ValidationGroup="g1">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    *Occupation:
                </td>
                <td>
                    <asp:TextBox ID="txbOccupation" runat="server" TextMode="SingleLine"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="valOccupation" runat="server" ErrorMessage="Please enter Occupation"
                        ControlToValidate="txbOccupation" Display="Dynamic" SetFocusOnError="True" ValidationGroup="g1">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Advisor:
                </td>
                <td>
                    <asp:DropDownList ID="ddlAdvisor" runat="server" DataTextField="Other_Names" DataValueField="AdvisorId">
                    <asp:ListItem Text="~" Value="" Selected="True"></asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr style="visibility:hidden;">
                <td>
                    Spouse Name:
                </td>
                <td>
                    <asp:TextBox ID="txbSpouseName" runat="server" TextMode="SingleLine" Visible="false"></asp:TextBox>
                    <asp:LinkButton ID="lnkSpouseDetails" runat="server" PostBackUrl="~/SpouseForm.aspx"
                        Visible="false">Add/Edit Spouse details</asp:LinkButton>
                </td>
            </tr>
            <tr>
                <td>
                    Registered Date:
                </td>
                <!--<td><asp:Calendar ID="Calendar2" runat="server"></asp:Calendar></td> -->
                <td>
                    <asp:TextBox ID="txbRegDate" runat="server" TextMode="SingleLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Remarks:
                </td>
                <td>
                    <asp:TextBox ID="txbRemarks" runat="server" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Active:
                </td>
                <td>
                    <asp:CheckBox ID="chkbActive" runat="server" Checked="true" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" ValidationGroup="g1" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
